//
//  MLABaseNavController.m
//  MagicLampApp
//
//  Created by Zheng on 2018/12/17.
//  Copyright © 2018 zheng.magic.lamp.app. All rights reserved.
//

#import "MLABaseNavController.h"

@interface MLABaseNavController ()

@end

@implementation MLABaseNavController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    [self.navigationBar setTranslucent:NO];
    [self.navigationBar setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault];
    [self.navigationBar setShadowImage:[[UIImage alloc] init]];
    [self.navigationBar setTintColor:CX_GetColorTitle()];
}


- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
    if (self.childViewControllers.count > 0) {
        viewController.hidesBottomBarWhenPushed = YES;
    }
    [super pushViewController:viewController animated:animated];
}



@end
